package com.demo.seckill.common.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author libo
 * @ClassName SuccessKilled
 * @date 2018/11/15 17:42
 */
@Entity
@Table(name= "success_killed")
public class SuccessKilled implements Serializable {
    @Id
    @Column(name = "seckill_id", nullable = false)
    private long seckillId;
    @Id @Column(name = "user_id", nullable = false)
    private long userId;
    private short state;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    private Timestamp createTime;

    public long getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(long seckillId) {
        this.seckillId = seckillId;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        System.out.println("git rebase test");
        this.createTime = createTime;
    }
}
